package com.example.night.data.promoteGood;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReputationRankingRepository extends JpaRepository<ReputationRanking, Long> {

    // 根据日期查找排名
    List<ReputationRanking> findByDate(String date);

    // 获取某天前 10 名
    List<ReputationRanking> findTop10ByDateOrderByRankingAsc(String date);
}
